package cn.dt70.service;

import cn.dt70.pojo.AqbInvestment;

import java.util.Date;
import java.util.List;

public interface AqbInvestmentService {
     //根据用户id查询投资记录
    List<AqbInvestment> findById(Integer id) throws Exception;

    //根据用户id查询一周内的投资记录
    List<AqbInvestment> findByIdInWeek(Integer id) throws Exception;

    //根据用户id查询一月内的投资记录
    List<AqbInvestment> findByIdInMonth(Integer id) throws Exception;

    //根据用户id查询三月内的投资记录
    List<AqbInvestment> findByIdInThreeMonth(Integer id) throws Exception;

    //根据用户id查询一段时间的投资记录
    List<AqbInvestment> findByIdForTime(Integer id, Date begin, Date end) throws Exception;

    //根据用户id查询可转让债权
    List<AqbInvestment> findCreditorById(Integer id) throws Exception;

    //增加投资记录
    boolean addInvestment(AqbInvestment aqbInvestment) throws Exception;

    //根据投资id查询投资
    AqbInvestment findByInvestId(Integer investmentId) throws Exception;
}
